﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FamilyBudgetManager.Domain
{
    public class Transfer
    {
        public virtual int Id { get; set; }

        public virtual IList<Record> Records { get; protected set; }

        public Transfer()
        {
            Records = new List<Record>();
        }

        public virtual void AddRecord(Record record)
        {
            record.Transfer = this;
            Records.Add(record);
        }
    }
}
